<% if current_user %>
<h1>New order</h1>

<%= render 'form' %>
<%= link_to 'Back', :back %> |
<%= link_to 'Home page', root_url %>
<% else %>
<p>Error: You are not currently logged in.</p>
<p>If you would like to place an order please <%= link_to "log in", log_in_path %>.<p>
<p>If you do not have an account, please <%= link_to "sign up", sign_up_path %><p>
<p>Or you can return to the <%= link_to "home page", root_url %>.<p>
<% end %>

